package cn.iocoder.yudao.module.project.dal.mysql.kismaterielexwarehouseorderedit;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.project.dal.dataobject.kismaterielexwarehouseorderedit.KisMaterielExWarehouseOrderEditDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.project.controller.admin.kismaterielexwarehouseorderedit.vo.*;

/**
 * 订单编辑-删除相关物料出库单 Mapper
 *
 * @author wangzuoyang
 */
@Mapper
public interface KisMaterielExWarehouseOrderEditMapper extends BaseMapperX<KisMaterielExWarehouseOrderEditDO> {

    default PageResult<KisMaterielExWarehouseOrderEditDO> selectPage(KisMaterielExWarehouseOrderEditPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<KisMaterielExWarehouseOrderEditDO>()
                .eqIfPresent(KisMaterielExWarehouseOrderEditDO::getExWarehouseId, reqVO.getExWarehouseId())
                .eqIfPresent(KisMaterielExWarehouseOrderEditDO::getExCode, reqVO.getExCode())
                .eqIfPresent(KisMaterielExWarehouseOrderEditDO::getOrderCode, reqVO.getOrderCode())
                .eqIfPresent(KisMaterielExWarehouseOrderEditDO::getType, reqVO.getType())
                .eqIfPresent(KisMaterielExWarehouseOrderEditDO::getCode, reqVO.getCode())
                .eqIfPresent(KisMaterielExWarehouseOrderEditDO::getCodeNum, reqVO.getCodeNum())
                .eqIfPresent(KisMaterielExWarehouseOrderEditDO::getSpecification, reqVO.getSpecification())
                .eqIfPresent(KisMaterielExWarehouseOrderEditDO::getCartonCode, reqVO.getCartonCode())
                .eqIfPresent(KisMaterielExWarehouseOrderEditDO::getCartonJson, reqVO.getCartonJson())
                .eqIfPresent(KisMaterielExWarehouseOrderEditDO::getSubmitStatus, reqVO.getSubmitStatus())
                .eqIfPresent(KisMaterielExWarehouseOrderEditDO::getMaterialStatus, reqVO.getMaterialStatus())
                .eqIfPresent(KisMaterielExWarehouseOrderEditDO::getRacketModel, reqVO.getRacketModel())
                .eqIfPresent(KisMaterielExWarehouseOrderEditDO::getSheetNum, reqVO.getSheetNum())
                .eqIfPresent(KisMaterielExWarehouseOrderEditDO::getWeight, reqVO.getWeight())
                .eqIfPresent(KisMaterielExWarehouseOrderEditDO::getCutSize, reqVO.getCutSize())
                .eqIfPresent(KisMaterielExWarehouseOrderEditDO::getKnivesNum, reqVO.getKnivesNum())
                .eqIfPresent(KisMaterielExWarehouseOrderEditDO::getAmount, reqVO.getAmount())
                .eqIfPresent(KisMaterielExWarehouseOrderEditDO::getMaterialsCut, reqVO.getMaterialsCut())
                .eqIfPresent(KisMaterielExWarehouseOrderEditDO::getAddLayers, reqVO.getAddLayers())
                .eqIfPresent(KisMaterielExWarehouseOrderEditDO::getMaterialCheck, reqVO.getMaterialCheck())
                .eqIfPresent(KisMaterielExWarehouseOrderEditDO::getIssuMaterials, reqVO.getIssuMaterials())
                .eqIfPresent(KisMaterielExWarehouseOrderEditDO::getOperator, reqVO.getOperator())
                .eqIfPresent(KisMaterielExWarehouseOrderEditDO::getRemark, reqVO.getRemark())
                .betweenIfPresent(KisMaterielExWarehouseOrderEditDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(KisMaterielExWarehouseOrderEditDO::getRecycleId));
    }

}